from django.contrib import admin
from django.contrib.sites.models import Site
from faq.models import *

class TopicAdmin(admin.ModelAdmin):
	prepopulated_fields = {'slug': ('title',)}

class QuestionAdmin(admin.ModelAdmin):
	prepopulated_fields = {'slug': ('question',)}
	list_display = ('question', 'published',)

admin.site.register(Topic, TopicAdmin)
admin.site.register(Question, QuestionAdmin)
